public class TestDemo {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        System.out.println(myLinkedList.size());
        myLinkedList.display();//321
        //System.out.println(myLinkedList.contains(1));
        myLinkedList.addLast(11);
        myLinkedList.addLast(12);
        myLinkedList.display();//321 11 12

        //myLinkedList.remove(2);
        myLinkedList.display();
    }
}
